package com.crocodileQ.blog.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.crocodileQ.common.annotation.Excel;
import com.crocodileQ.common.core.domain.BaseEntity;


/**
 * 图片对象 blog_images
 * 
 * @author crocodilePole
 * @date 2025-06-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class BlogImages extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    private Long id;

    /** 图片文件名 */
    @Excel(name = "图片文件名")
    private String fileName;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String url;

    /** 图片上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "图片上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime uploadTime;

    /** 图片描述 */
    @Excel(name = "图片描述")
    private String description;

    /** 上传用户ID，关联用户表 */
    @Excel(name = "上传用户ID，关联用户表")
    private Long userId;

    /** 图片隐私设置,0:private,1:public */
    @Excel(name = "图片隐私设置,0:private,1:public")
    private Integer privacySetting;

    /** 逻辑删除标志，1:已删除，0:未删除 */
    @Excel(name = "逻辑删除标志，1:已删除，0:未删除")
    private Integer isDeleted;


}
